diff options
Diffstat (limited to 'app/[lng]')
| -rw-r--r-- | app/[lng]/partners/(partners)/dolce-upload-v3/dolce-upload-page-v3.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/[lng]/partners/(partners)/dolce-upload-v3/dolce-upload-page-v3.tsx b/app/[lng]/partners/(partners)/dolce-upload-v3/dolce-upload-page-v3.tsx index 513cfe1e..55bedb38 100644 --- a/app/[lng]/partners/(partners)/dolce-upload-v3/dolce-upload-page-v3.tsx +++ b/app/[lng]/partners/(partners)/dolce-upload-v3/dolce-upload-page-v3.tsx @@ -85,6 +85,7 @@ export default function DolceUploadPageV3({ searchParams }: DolceUploadPageV3Pro const [files, setFiles] = useState<FileInfoItem[]>([]); const [isLoadingDetails, setIsLoadingDetails] = useState(false); const [, setIsLoadingFiles] = useState(false); + const [downloadingFileId, setDownloadingFileId] = useState<string | null>(null); // 다이얼로그 상태 const [bulkUploadDialogOpen, setBulkUploadDialogOpen] = useState(false); @@ -311,6 +312,7 @@ export default function DolceUploadPageV3({ searchParams }: DolceUploadPageV3Pro const handleDownload = async (file: FileInfoItem) => { try { + setDownloadingFileId(file.FileId); toast.info(t("detailDialog.downloadPreparing")); const response = await fetch("/api/dolce/download", { method: "POST", @@ -337,6 +339,8 @@ export default function DolceUploadPageV3({ searchParams }: DolceUploadPageV3Pro } catch (error) { console.error("파일 다운로드 실패:", error); toast.error(t("detailDialog.downloadError")); + } finally { + setDownloadingFileId(null); } }; @@ -375,7 +379,8 @@ export default function DolceUploadPageV3({ searchParams }: DolceUploadPageV3Pro const fileColumns = createFileListColumns({ onDownload: handleDownload, onDelete: handleDeleteFile, - lng + lng, + downloadingFileId }); if (isLoading) { |
